package entity

type SysUsers struct {
	Id          int64  `gorm:"column:id;primary_key" json:"id"`
	Uuid        string `gorm:"column:uuid;type:varchar(255);not null" json:"uuid"`
	Username    string `gorm:"column:username;type:varchar(255);not null" json:"username"`
	Password    string `gorm:"column:password;type:varchar(255);not null" json:"password"`
	NickName    string `gorm:"column:nick_name;type:varchar(255);not null" json:"nick_name"`
	SideMode    string `gorm:"column:side_mode;type:varchar(255);not null" json:"side_mode"`
	HeaderImg   string `gorm:"column:header_img;type:varchar(255);not null" json:"header_img"`
	BaseColor   string `gorm:"column:base_color;type:varchar(255);not null" json:"base_color"`
	ActiveColor string `gorm:"column:active_color;type:varchar(255);not null" json:"active_color"`
	AuthorityId int64  `gorm:"column:authority_id;type:bigint;not null" json:"authority_id"`
	Phone       string `gorm:"column:phone;type:varchar(255);not null" json:"phone"`
	Email       string `gorm:"column:email;type:varchar(255);not null" json:"email"`
	Enable      int    `gorm:"column:enable;type:varchar(255);not null" json:"enable"`
	CreatedAt   int64  `gorm:"column:created_at;type:bigint;not null" json:"created_at"`
	UpdatedAt   int64  `gorm:"column:updated_at;type:bigint;not null" json:"updated_at"`
	DeletedAt   int64  `gorm:"column:deleted_at;type:bigint;not null" json:"deleted_at"`
}

func (s *SysUsers) TableName() string {
	return "sys_users"
}
